import { myRequest} from '../utils/request.js'

//  
export function loginAPI(data) {
	return myRequest({
		url: "/app-api/member/auth/weixin-mini-app-login",
		data,
		header: "notoken",
		method: "POST"
	})
}
export function getAddressByLatLngAPI(data) {
	return myRequest({
		url: "/api/getAddressByLatLng",
		data,
		method: "get"
	})
}
// 注册表单下拉框配置
export function selectListAPI(data) {
	return myRequest({
		url: "/api/select/type",
		data,
		method: "get"
	})
}
//  注册
export function proprietorAPI(data,type) {
	let url=[
		"/api/proprietor/reg",//0
		"/api/technician/reg",//技师注册
		"/api/proprietor/reg",//业主注册
		"/api/designer/reg",//设计师注册
		"/api/merchant/reg",//材料商注册
	]
	return myRequest({
		url:url[type],
		data,
		method: "POST"
	})
}

 